﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UMLDesigner.Data
{
    public enum AccessType
    {
        PUBLIC,
        PROTECTED,
        PRIVATE,
        PACKAGE
    }

    public class AccessTypeString
    {
        public static string GetTypeString(AccessType typeCode)
        {
            string result = null;
            switch (typeCode)
            {
                case AccessType.PUBLIC:
                    result = "+";
                    break;
                case AccessType.PROTECTED:
                    result = "#";
                    break;
                case AccessType.PRIVATE:
                    result = "-";
                    break;
                case AccessType.PACKAGE:
                    result = "~";
                    break;
            }
            return result;
        }
    }
}
